﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;

namespace CallbackService
{
    [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)]
    public class MyService : IMyContract
    {
        public int MyMethod()
        {
            IMyContractCallback callbackInstance
                            = OperationContext.Current.GetCallbackChannel<IMyContractCallback>();
            int t = callbackInstance.OnCallback();
            return 200 + t;
        }
    }

}
